<#include "head.html"/>
<SCRIPT type="text/javascript">
	$(document).ready(function(){
		var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
		ztree.selectNode(ztree.getNodeByParam("id", "allwarn", null));
		var data = [54, 21, 20];
		var category = [
                    '正在执行',
                    '等待中',
                    '已挂起'
                ];
		createBarChart("#container" , "bar" , data , category , "合计（25）");		
		var pieData = [
                ['正在执行', 54],
                ['等待中',  21],
                ['已挂起',  20]
            ]
		createPieChart("#piecontainer" ,  pieData );
	});
	function submitSearchForm(currentPage){
		$("#p").val(currentPage);
		$("#searchForm").submit();
	}
</SCRIPT>
<div class="rs_layout_top breadCrumbWrap">
	<div class="breadCrumbStart">您当前的位置是在：</div>
	<ul class="breadCrumb">
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">系统管理</a></li>
		<li class="bc_ithems"><a href="/${orgi}/manage/task/taskpassing.html">状态</a></li>
	</ul>
	<ul class="controlButtons">
		<li title="创建分组" data-width="480" href="/${orgi}/manage/account/organadd/${parentid!''}.html" id="organadd" data-toggle="ajax" class="cbtn-icon-3"></li>
		<#if parentid??&&parentid!='0'>
		 <li title="修改分组" data-width="480" href="/${orgi}/manage/account/organedit/${parentid!''}.html" id="organedit" data-toggle="ajax" class="cbtn-icon-31"></li>
		 <li title="删除分组" onclick="art.confirm('您确定要删除此分组吗？' , function(){location.href='/${orgi}/manage/account/organdelo/${parentid!''}.html'} , function(){})" id="organdelo" class="cbtn-icon-30"></li>
		</#if>


		<li title="添加用户" data-width="565" href="/${orgi}/manage/account/useradd/${parentid!''}.html" id="newreport" data-toggle="ajax" class="cbtn-icon-32"></li>
	</ul>
</div>
<div class="rs_layout_left" resizable="true" style="width:230px;">
	<div class="lftTreeWrap">
		<div class="task_title2">状态</div>
		<div class="ztree" id="zTree_adminLIst"></div>
		<div class="rs_layout_top" style="font-size: 12px">
		<form id="searchForm" action="/${orgi}/manage/task/index.html" method="post">	
		
			<input type="hidden" id="p" name="p" value="">
			<div class="task_title2">过滤器</div>

			<div style="padding-bottom: 20px;padding-left: 20px;border-bottom: solid 2px #ddd;" id="filterList">
				<label style="width: 100%;"><input type="radio" name="" value="">后台活动 </label><br>
				<label><input type="radio" name="" value="">交互式活动 </label>
			</div>

			
			<div style="padding-left: 20px;padding-top: 10px;">
				
					<div>
					日期：<br>
					<input type="text" name="" style="margin-top: 5px;" value="">
					</div>
				
					<div>
					开始时间：<input type="text" name="" style="margin-top: 5px;" value="">
					<br>
					结束时间：<input type="text" name="" style="margin-top: 5px;" value="">
					</div>
			
					
					<div style="margin-top: 10px;">
					<label>创建人：</label>
					<input type="text" name="" style="margin-top: 5px;" value="">
					</div>
					
				
					<div style="margin-top: 10px;">
						<label>状态：</label>
						<select>
							<option value="">任意</option>
						</select>
					</div>
					
					<div style="margin-top: 10px;">
						<label>优先级：</label>
						<select >
							<option value="">任意</option>
						</select>
					</div>

			</div>
			<div style="text-align: center;margin-top: 10px;background: #ddd;padding: 5px 0px;">
				<input class="subButtonStyle" style="margin:0px auto;" type="button" value="应用">
			</div>
			</form>
		</div>
	</div>
</div>
<!--<div class="rs_layout_right" style="width:300px;"></div>-->
<div class="rs_layout_center">
	<div class="rs_layout">
		<div class="rs_layout_top" style="height:180px; overflow:hidden; border-bottom: solid 1px #d7d7d7;">
			<div class="rs_layout">
				<div class="rs_layout_center">
					<div class="rs_layout">
						<div class="rs_layout_top" >
							<div class="task_title2">sadfsadf</div>
							<div class="row-fluid">
								<div class="span8"><div id="container" style="width: 90%; height: 140px;"></div></div>
								<div class="span4"><div id="piecontainer" style="width: 100%; height: 160px;margin:0 0 0 auto;"></div></div>
							</div>
							
						</div>
						
					</div>
				</div>
			</div>
		</div>
		<div class="rs_layout_center">
			
			<div class="tableScrollWrap">
					
				<table class="table_style_1">
					<thead>
						<tr>
							<th style="width:20px;">&nbsp;</th>
							<th><i class="verMidWrap">名称（目录）</i><i class="tbArrow"></i></th>
							<th><i class="minSize">执行时间</i><i class="tbArrow"></i></th>
							<th><i class="minSize">执行人</i><i class="tbArrow"></i></th>
							<th class="minSize">状态</th>
						</tr>
					</thead>
					<tbody>
						
						<#if historytasks??>
						<#list historytasks as task>
						<tr>
							<td>&nbsp;</td>
							<td><a href="javascript:void(0)"><i class="icons_tablelist_1"></i>${task.name!''}</a></td>
							<td class="minSize">${task.starttime?string("yyyy年MM月dd HH:mm:ss")}</td>
							<td class="minSize">${task.username!''}(${task.nickname!''})</td>
							<td class="minSize">
								<#if task.resulttype==1>成功<#elseif task.resulttype==0>失败<#else>原因不明</#if>
							</td>
						</tr> 
						</#list>
						</#if>
					</tbody>
				</table>
			</div>

		</div>
		<div class="rs_layout_bottom">
			<div class="papers_1">
				<a class="pageElems" href="javascript:void(0)" onclick="submitSearchForm(1);"><img title="首页" alt="首页" src="/assets/images/go-first-view.png"> </a>
				<a class="pageElems" href="javascript:void(0)" onclick="submitSearchForm(<#if (data.p<=0)>0<#else>${data.pages-1}</#if>);"><img title="上一页" alt="上一页" src="/assets/images/go-previous-view.png"></a>				
				<a class="pageElems" href="javascript:void(0)" onclick="submitSearchForm(<#if (data.p>=data.pages)>${data.pages}<#else>${data.p+1}</#if>);"><img title="下一页" alt="下一页" src="/assets/images/go-next-view.png"></a>
				<a class="pageElems" href="javascript:void(0)" onclick="submitSearchForm(${data.pages});"><img title="尾页" alt="尾页" src="/assets/images/go-last-view.png"></a>
			
				
			</div>
		</div>

	</div>
</div>
